export type NetData=(string|ArrayBufferLike|Blob|ArrayBufferView);
export interface ISocket{
    onConnected:(event:any)=>void;
    onMessage:(msg:NetData)=>void;
    onError:(event:any)=>void;
    onClosed:(event:any)=>void;

    connect(options:any);
    send(buffer:NetData);
    close(code?:number,reason?:string);
}
